package com.fc.advbox.entity;

import com.fc.advbox.utils.validator.group.AddGroup;
import com.fc.advbox.utils.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by E7450 on 2018/7/25.
 */
@Getter
@Setter
@ToString
@ApiModel(value = "ADV_USER_TOKEN_ADDRESS", description = "个人虚拟币地址")
public class UserTokenAddressEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;
    private Long userId;           // 虚拟币账号ID
    private String type;           // 类型 key / eos / pai
    @NotBlank(message="地址备注不能为空",  groups = {AddGroup.class, UpdateGroup.class})
    private String addressName;    // 备注，名称
    @NotBlank(message="地址不能为空",  groups = {AddGroup.class, UpdateGroup.class})
    private String address;        // 具体地址
    private Date createTime;       // 创建时间
}
